/************************************************************
 * Project Name         [Thinking_In_Java]
 * File Name            [ExaminationAdapter.java]
 * Creation Date        [12-Jul-2014]
 * 
 * Copyright© ge.y.yang@gmail.com All Rights Reserved
 * 
 * Work hard, play harder, think big and keep fit
 ************************************************************/
package pkg_04_other.examApp.dao;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import pkg_04_other.examApp.entity.Paper;
import pkg_04_other.examApp.entity.Student;

/**
 * 考试业务实现 - 适配器模式
 * 
 * @author 不落的太阳(Sean Yang)
 * @version 1.0
 * @since JDK 6
 * 
 */
public class ExaminationAdapter implements Examination {

	/* 学生姓名 */
	private static String name = "";

	/* 学生考号 */
	private static int id = 0;

	/* 考试科目 */
	private static String subject = "";

	/* 试卷正确答案 */
	private static Map<Integer, String> correctAnswers = new HashMap<Integer, String>();

	/* 试卷回答答案 */
	private static Map<Integer, String> answers = new HashMap<Integer, String>();

	@Override
	public boolean login(Student student) {
		return false;
	}

	@Override
	public String getName() {
		return ExaminationAdapter.name;
	}

	public void setName(String name) {
		ExaminationAdapter.name = name;
	}

	@Override
	public int getId() {
		return ExaminationAdapter.id;
	}

	public void setId(int id) {
		ExaminationAdapter.id = id;
	}

	@Override
	public String getSubject() {
		return ExaminationAdapter.subject;
	}

	@Override
	public void setSubject(String subject) {
		ExaminationAdapter.subject = subject;
	}

	@Override
	public List<String> getSubjects() {
		return null;
	}

	@Override
	public Paper getPaper() {
		return null;
	}

	@Override
	public Map<Integer, String> getCorrectAnswers() {
		return ExaminationAdapter.correctAnswers;
	}

	@Override
	public Map<Integer, String> getAnswers() {
		return ExaminationAdapter.answers;
	}

	@Override
	public float getScore() {
		return 0;
	}

	@Override
	public int getCount() {
		return 0;
	}

}
